package com.qmth.gkwb.data.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.qmth.gkwb.data.constant.OrderStatus;

/**
 * 支付单
 * @author zhengmin
 *
 */
@Entity
@Table(name="zf_zfd")
public class ZFZFD {

	@Id
	@Column(name="zfdid")
	private long id;
	
	@Column(name="zfd_no")
	private String orderId;
	
	@Column(name="zfd_mc")
	private String orderName;
	
	@Column(name="zfd_jysm")
	private String shortDesc;//简要说明
	
	@Column(name="zfd_je")
	private double money;
	
	@Column(name="zfd_zfdztid")
	@Enumerated(EnumType.ORDINAL)
	private OrderStatus status;
	
	@Column(name="zfd_zffsid")
	private int payType;//支付方式，1：银联，2：支付宝
	
	@Column(name="zfd_xjzfdmemberid")
	private Long orderUserId;
	
	@Column(name="zfd_xjzfdmemberno")
	private String orderUserNo;
	
	@Column(name="zfd_xjzfdmembermc")
	private String OrderUsername;
	
	@Column(name="zfd_xdsj")
	@Temporal(TemporalType.TIMESTAMP)
	private Date orderDate;
	
	@Column(name="zfd_zfmemberid")
	private Long payUserId;
	
	@Column(name="zfd_zfmemberno")
	private String payUserNo;
	
	@Column(name="zfd_zfmembermc")
	private String payUsername;
	
	@Column(name="zfd_zfsj")
	@Temporal(TemporalType.TIMESTAMP)
	private Date payDate;
	
	@Column(name="zfd_zfsjzfc")
	private String payDateStr;
	
	@Column(name="zfd_wcsj")
	@Temporal(TemporalType.TIMESTAMP)
	private Date completeDate;
	
	@Column(name="zfd_wcsjzfc")
	private String completeDateStr;
	
	@Column(name="zfd_merid")
	private String merId;
	
	@Column(name="zfd_transamt")
	private String transAmt;
	
	@Column(name="zfd_curyid")
	private String curyId;
	
	@Column(name="zfd_version")
	private String version;
	@Column(name="zfd_bgreturl")
	private String bgRetUrl;//后台交易接收url地址
	@Column(name="zfd_pagereturl")
	private String pageRetUrl;//页面交易url地址
	@Column(name="zfd_gateid")
	private String gateId;//支付网关号
	@Column(name="zfd_transtype")
	private String transType = "0001";
	@Column(name="zfd_transdate")
	private String transDate;
	@Column(name="zfd_priv1")
	private String priv1;
	
	@Column(name="zfd_chkvalue")
	private String chkValue;
	@Column(name="zfd_bz")
	private String remark;
	
	public long getId() {
		return id;
	}
	
	public void setId(long id) {
		this.id = id;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getOrderName() {
		return orderName;
	}

	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}

	public String getShortDesc() {
		return shortDesc;
	}

	public void setShortDesc(String shortDesc) {
		this.shortDesc = shortDesc;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public OrderStatus getStatus() {
		return status;
	}

	public void setStatus(OrderStatus status) {
		this.status = status;
	}

	public int getPayType() {
		return payType;
	}

	public void setPayType(int payType) {
		this.payType = payType;
	}

	public Long getOrderUserId() {
		return orderUserId;
	}

	public void setOrderUserId(Long orderUserId) {
		this.orderUserId = orderUserId;
	}

	public String getOrderUserNo() {
		return orderUserNo;
	}

	public void setOrderUserNo(String orderUserNo) {
		this.orderUserNo = orderUserNo;
	}

	public String getOrderUsername() {
		return OrderUsername;
	}

	public void setOrderUsername(String orderUsername) {
		OrderUsername = orderUsername;
	}

	public Date getOrderDate() {
		return orderDate;
	}

	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}

	public Long getPayUserId() {
		return payUserId;
	}

	public void setPayUserId(Long payUserId) {
		this.payUserId = payUserId;
	}

	public String getPayUserNo() {
		return payUserNo;
	}

	public void setPayUserNo(String payUserNo) {
		this.payUserNo = payUserNo;
	}

	public String getPayUsername() {
		return payUsername;
	}

	public void setPayUsername(String payUsername) {
		this.payUsername = payUsername;
	}

	public Date getPayDate() {
		return payDate;
	}

	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}

	public String getPayDateStr() {
		return payDateStr;
	}

	public void setPayDateStr(String payDateStr) {
		this.payDateStr = payDateStr;
	}

	public Date getCompleteDate() {
		return completeDate;
	}

	public void setCompleteDate(Date completeDate) {
		this.completeDate = completeDate;
	}

	public String getCompleteDateStr() {
		return completeDateStr;
	}

	public void setCompleteDateStr(String completeDateStr) {
		this.completeDateStr = completeDateStr;
	}

	public String getMerId() {
		return merId;
	}

	public void setMerId(String merId) {
		this.merId = merId;
	}

	public String getTransAmt() {
		return transAmt;
	}

	public void setTransAmt(String transAmt) {
		this.transAmt = transAmt;
	}

	public String getCuryId() {
		return curyId;
	}

	public void setCuryId(String curyId) {
		this.curyId = curyId;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getBgRetUrl() {
		return bgRetUrl;
	}

	public void setBgRetUrl(String bgRetUrl) {
		this.bgRetUrl = bgRetUrl;
	}

	public String getPageRetUrl() {
		return pageRetUrl;
	}

	public void setPageRetUrl(String pageRetUrl) {
		this.pageRetUrl = pageRetUrl;
	}

	public String getGateId() {
		return gateId;
	}

	public void setGateId(String gateId) {
		this.gateId = gateId;
	}

	public String getTransType() {
		return transType;
	}

	public void setTransType(String transType) {
		this.transType = transType;
	}

	public String getTransDate() {
		return transDate;
	}

	public void setTransDate(String transDate) {
		this.transDate = transDate;
	}

	public String getPriv1() {
		return priv1;
	}

	public void setPriv1(String priv1) {
		this.priv1 = priv1;
	}

	public String getChkValue() {
		return chkValue;
	}

	public void setChkValue(String chkValue) {
		this.chkValue = chkValue;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	
}
